package com.hangzhou.welbeing.welbeinginstrument.fragement;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

import com.hangzhou.welbeing.welbeinginstrument.R;
import com.hangzhou.welbeing.welbeinginstrument.activity.RadiationDetectorActivity;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * 时间 2017 年 08 月 10.
 * 作者 Administrator  刘传华
 * 公司 杭州惟君医疗科技有限公司
 * 包名 com.hangzhou.welbeing.pregnant.welbeing_pregnant.fragement
 * 工程名 welbeing_pregnant
 */
public class MyDevcieFragment extends Fragment {


    @Bind(R.id.fragment_my_devcie_iv_pregnant_women_lamp)
    ImageView fragmentMyDevcieIvPregnantWomenLamp;
    @Bind(R.id.fragment_my_devcie_iv_radiometer)
    ImageView fragmentMyDevcieIvRadiometer;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view = View.inflate(getContext(), R.layout.fragment_my_devcie, null);
        ButterKnife.bind(this, view);
        return view;
    }

    @Override
    public void onDestroyView() {
        super.onDestroyView();
        ButterKnife.unbind(this);
    }

    @OnClick({R.id.fragment_my_devcie_iv_pregnant_women_lamp, R.id.fragment_my_devcie_iv_radiometer})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.fragment_my_devcie_iv_pregnant_women_lamp:
                break;
            case R.id.fragment_my_devcie_iv_radiometer:
                Intent intent =  new Intent(getContext(), RadiationDetectorActivity.class);
                startActivity(intent);
                break;
        }
    }

}
